package java8;

public class LambdaSample {

    public static void main(String[] args) {

        // 过去的写法
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("do something");
            }
        }).start();
        // lambda 表达式写法
        new Thread(() -> System.out.println("do something")).start();

    }

}